3.12 \(\int \frac {\sin ^3(x)}{a+b \cos ^2(x)} \, dx\)

Optimal. Leaf size=36 \[ \frac {\cos (x)}{b}-\frac {(a+b) \tan ^{-1}\left (\frac {\sqrt {b} \cos (x)}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \]

[Out]

cos(x)/b-(a+b)*arctan(cos(x)*b^(1/2)/a^(1/2))/b^(3/2)/a^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3190, 388, 205} \[ \frac {\cos (x)}{b}-\frac {(a+b) \tan ^{-1}\left (\frac {\sqrt {b} \cos (x)}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \]

Antiderivative was successfully verified.

[In]

Int[Sin[x]^3/(a + b*Cos[x]^2),x]

[Out]

-(((a + b)*ArcTan[(Sqrt[b]*Cos[x])/Sqrt[a]])/(Sqrt[a]*b^(3/2))) + Cos[x]/b

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 388

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[(d*x*(a + b*x^n)^(p + 1))/(b*(n*
(p + 1) + 1)), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(b*(n*(p + 1) + 1)), Int[(a + b*x^n)^p, x], x] /; FreeQ[{
a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]

Rule 3190

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b*ff^2*x^2)^p, x], x, Sin[e +
f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps

\begin {align*} \int \frac {\sin ^3(x)}{a+b \cos ^2(x)} \, dx &=-\operatorname {Subst}\left (\int \frac {1-x^2}{a+b x^2} \, dx,x,\cos (x)\right )\\ &=\frac {\cos (x)}{b}-\frac {(a+b) \operatorname {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\cos (x)\right )}{b}\\ &=-\frac {(a+b) \tan ^{-1}\left (\frac {\sqrt {b} \cos (x)}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}}+\frac {\cos (x)}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.18, size = 90, normalized size = 2.50 \[ \frac {\sqrt {a} \sqrt {b} \cos (x)-\left ((a+b) \tan ^{-1}\left (\frac {\sqrt {b}-\sqrt {a+b} \tan \left (\frac {x}{2}\right )}{\sqrt {a}}\right )\right )-(a+b) \tan ^{-1}\left (\frac {\sqrt {a+b} \tan \left (\frac {x}{2}\right )+\sqrt {b}}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]^3/(a + b*Cos[x]^2),x]

[Out]

(-((a + b)*ArcTan[(Sqrt[b] - Sqrt[a + b]*Tan[x/2])/Sqrt[a]]) - (a + b)*ArcTan[(Sqrt[b] + Sqrt[a + b]*Tan[x/2])
/Sqrt[a]] + Sqrt[a]*Sqrt[b]*Cos[x])/(Sqrt[a]*b^(3/2))

________________________________________________________________________________________

fricas [A]  time = 0.55, size = 95, normalized size = 2.64 \[ \left [\frac {2 \, a b \cos \relax (x) - \sqrt {-a b} {\left (a + b\right )} \log \left (-\frac {b \cos \relax (x)^{2} + 2 \, \sqrt {-a b} \cos \relax (x) - a}{b \cos \relax (x)^{2} + a}\right )}{2 \, a b^{2}}, \frac {a b \cos \relax (x) - \sqrt {a b} {\left (a + b\right )} \arctan \left (\frac {\sqrt {a b} \cos \relax (x)}{a}\right )}{a b^{2}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3/(a+b*cos(x)^2),x, algorithm="fricas")

[Out]

[1/2*(2*a*b*cos(x) - sqrt(-a*b)*(a + b)*log(-(b*cos(x)^2 + 2*sqrt(-a*b)*cos(x) - a)/(b*cos(x)^2 + a)))/(a*b^2)
, (a*b*cos(x) - sqrt(a*b)*(a + b)*arctan(sqrt(a*b)*cos(x)/a))/(a*b^2)]

________________________________________________________________________________________

giac [A]  time = 0.18, size = 30, normalized size = 0.83 \[ -\frac {{\left (a + b\right )} \arctan \left (\frac {b \cos \relax (x)}{\sqrt {a b}}\right )}{\sqrt {a b} b} + \frac {\cos \relax (x)}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3/(a+b*cos(x)^2),x, algorithm="giac")

[Out]

-(a + b)*arctan(b*cos(x)/sqrt(a*b))/(sqrt(a*b)*b) + cos(x)/b

________________________________________________________________________________________

maple [A]  time = 0.06, size = 46, normalized size = 1.28 \[ \frac {\cos \relax (x )}{b}-\frac {\arctan \left (\frac {\cos \relax (x ) b}{\sqrt {a b}}\right ) a}{b \sqrt {a b}}-\frac {\arctan \left (\frac {\cos \relax (x ) b}{\sqrt {a b}}\right )}{\sqrt {a b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)^3/(a+b*cos(x)^2),x)

[Out]

cos(x)/b-1/b/(a*b)^(1/2)*arctan(cos(x)*b/(a*b)^(1/2))*a-1/(a*b)^(1/2)*arctan(cos(x)*b/(a*b)^(1/2))

________________________________________________________________________________________

maxima [A]  time = 2.34, size = 30, normalized size = 0.83 \[ -\frac {{\left (a + b\right )} \arctan \left (\frac {b \cos \relax (x)}{\sqrt {a b}}\right )}{\sqrt {a b} b} + \frac {\cos \relax (x)}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3/(a+b*cos(x)^2),x, algorithm="maxima")

[Out]

-(a + b)*arctan(b*cos(x)/sqrt(a*b))/(sqrt(a*b)*b) + cos(x)/b

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 28, normalized size = 0.78 \[ \frac {\cos \relax (x)}{b}-\frac {\mathrm {atan}\left (\frac {\sqrt {b}\,\cos \relax (x)}{\sqrt {a}}\right )\,\left (a+b\right )}{\sqrt {a}\,b^{3/2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)^3/(a + b*cos(x)^2),x)

[Out]

cos(x)/b - (atan((b^(1/2)*cos(x))/a^(1/2))*(a + b))/(a^(1/2)*b^(3/2))

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)**3/(a+b*cos(x)**2),x)

[Out]

Timed out

________________________________________________________________________________________